package org.ruslan.kolobok.model;

public class Barrel extends LevelObject<Type> implements IKillable {

	public static enum BarrelState implements State {
		STILL, DIE
	}
	
	private int health;

	public Barrel(Type type) {
		super(type);
		state = BarrelState.STILL;
	}

	public BarrelState getState() {
		return (BarrelState) state;
	}

	public void setState(BarrelState state) {
		this.state = state;
	}
	
	@Override
	public void setHealth(int health) {
		this.health = health;
	}
	
	@Override
	public int getHealth() {
		return health;
	}
}
